﻿/*
 * XCoder v3.4.2011.0316
 * 作者：nnhy/X
 * 时间：2011-04-04 11:42:50
 * 版权：版权所有 (C) 新生命开发团队 2010
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using XCode;
using XCode.DataAccessLayer;

namespace NXCMS.Sys
{
	/// <summary>
	/// 成员个人信息
	/// </summary>
	[Serializable]
	[DataObject]
	[Description("成员个人信息")]
	[BindTable("MemberPersonInfo", Description = "成员个人信息", ConnName = "Sys", DbType = DatabaseType.SqlServer)]
	public partial class MemberPersonInfo
	{
		#region 属性
		private Int32 _ID;
		/// <summary>
		/// 编号
		/// </summary>
		[Description("编号")]
		[DataObjectField(true, true, false, 10)]
		[BindColumn(1, "ID", "编号", "", "int", 10, 0, false)]
		public Int32 ID
		{
			get { return _ID; }
			set { if (OnPropertyChange("ID", value)) _ID = value; }
		}

		private String _UserName;
		/// <summary>
		/// 用户名称
		/// </summary>
		[Description("用户名称")]
		[DataObjectField(false, false, false, 50)]
		[BindColumn(2, "UserName", "用户名称", "", "nvarchar(50)", 0, 0, true)]
		public String UserName
		{
			get { return _UserName; }
			set { if (OnPropertyChange("UserName", value)) _UserName = value; }
		}

		private String _NickName;
		/// <summary>
		/// 昵称
		/// </summary>
		[Description("昵称")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(3, "NickName", "昵称", "", "nvarchar(100)", 0, 0, true)]
		public String NickName
		{
			get { return _NickName; }
			set { if (OnPropertyChange("NickName", value)) _NickName = value; }
		}

		private String _Birthday;
		/// <summary>
		/// 生日
		/// </summary>
		[Description("生日")]
		[DataObjectField(false, false, true, 20)]
		[BindColumn(4, "Birthday", "生日", "", "nvarchar(20)", 0, 0, true)]
		public String Birthday
		{
			get { return _Birthday; }
			set { if (OnPropertyChange("Birthday", value)) _Birthday = value; }
		}

		private String _QQ;
		/// <summary>
		/// 
		/// </summary>
		[Description("")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(5, "QQ", "", "", "nvarchar(10)", 0, 0, true)]
		public String QQ
		{
			get { return _QQ; }
			set { if (OnPropertyChange("QQ", value)) _QQ = value; }
		}

		private String _MSN;
		/// <summary>
		/// 
		/// </summary>
		[Description("")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(6, "MSN", "", "", "nvarchar(50)", 0, 0, true)]
		public String MSN
		{
			get { return _MSN; }
			set { if (OnPropertyChange("MSN", value)) _MSN = value; }
		}

		private String _Tel;
		/// <summary>
		/// 电话
		/// </summary>
		[Description("电话")]
		[DataObjectField(false, false, true, 20)]
		[BindColumn(7, "Tel", "电话", "", "nvarchar(20)", 0, 0, true)]
		public String Tel
		{
			get { return _Tel; }
			set { if (OnPropertyChange("Tel", value)) _Tel = value; }
		}

		private String _Mobile;
		/// <summary>
		/// 手机
		/// </summary>
		[Description("手机")]
		[DataObjectField(false, false, true, 20)]
		[BindColumn(8, "Mobile", "手机", "", "nvarchar(20)", 0, 0, true)]
		public String Mobile
		{
			get { return _Mobile; }
			set { if (OnPropertyChange("Mobile", value)) _Mobile = value; }
		}

		private String _Address;
		/// <summary>
		/// 地址
		/// </summary>
		[Description("地址")]
		[DataObjectField(false, false, true, 100)]
		[BindColumn(9, "Address", "地址", "", "nvarchar(100)", 0, 0, true)]
		public String Address
		{
			get { return _Address; }
			set { if (OnPropertyChange("Address", value)) _Address = value; }
		}

		private String _ZipCode;
		/// <summary>
		/// 邮政编码
		/// </summary>
		[Description("邮政编码")]
		[DataObjectField(false, false, true, 10)]
		[BindColumn(10, "ZipCode", "邮政编码", "", "nvarchar(10)", 0, 0, true)]
		public String ZipCode
		{
			get { return _ZipCode; }
			set { if (OnPropertyChange("ZipCode", value)) _ZipCode = value; }
		}

		private String _BackupNo;
		/// <summary>
		/// 备份编号
		/// </summary>
		[Description("备份编号")]
		[DataObjectField(false, false, true, 15)]
		[BindColumn(11, "BackupNo", "备份编号", "", "nvarchar(15)", 0, 0, true)]
		public String BackupNo
		{
			get { return _BackupNo; }
			set { if (OnPropertyChange("BackupNo", value)) _BackupNo = value; }
		}

		private String _BackupOperator;
		/// <summary>
		/// 备份操作者
		/// </summary>
		[Description("备份操作者")]
		[DataObjectField(false, false, true, 200)]
		[BindColumn(12, "BackupOperator", "备份操作者", "", "nvarchar(200)", 0, 0, true)]
		public String BackupOperator
		{
			get { return _BackupOperator; }
			set { if (OnPropertyChange("BackupOperator", value)) _BackupOperator = value; }
		}

		private DateTime _BackupTime;
		/// <summary>
		/// 备份时间
		/// </summary>
		[Description("备份时间")]
		[DataObjectField(false, false, true, 7)]
		[BindColumn(13, "BackupTime", "备份时间", "", "datetime2", 7, 0, false)]
		public DateTime BackupTime
		{
			get { return _BackupTime; }
			set { if (OnPropertyChange("BackupTime", value)) _BackupTime = value; }
		}

		private String _BackupMemo;
		/// <summary>
		/// 备份注释
		/// </summary>
		[Description("备份注释")]
		[DataObjectField(false, false, true, 50)]
		[BindColumn(14, "BackupMemo", "备份注释", "", "nvarchar(50)", 0, 0, true)]
		public String BackupMemo
		{
			get { return _BackupMemo; }
			set { if (OnPropertyChange("BackupMemo", value)) _BackupMemo = value; }
		}
		#endregion

		#region 获取/设置 字段值
		/// <summary>
		/// 获取/设置 字段值。
		/// 一个索引，基类使用反射实现。
		/// 派生实体类可重写该索引，以避免反射带来的性能损耗
		/// </summary>
		/// <param name="name">字段名</param>
		/// <returns></returns>
		public override Object this[String name]
		{
			get
			{
				switch (name)
				{
					case "ID" : return _ID;
					case "UserName" : return _UserName;
					case "NickName" : return _NickName;
					case "Birthday" : return _Birthday;
					case "QQ" : return _QQ;
					case "MSN" : return _MSN;
					case "Tel" : return _Tel;
					case "Mobile" : return _Mobile;
					case "Address" : return _Address;
					case "ZipCode" : return _ZipCode;
					case "BackupNo" : return _BackupNo;
					case "BackupOperator" : return _BackupOperator;
					case "BackupTime" : return _BackupTime;
					case "BackupMemo" : return _BackupMemo;
					default: return base[name];
				}
			}
			set
			{
				switch (name)
				{
					case "ID" : _ID = Convert.ToInt32(value); break;
					case "UserName" : _UserName = Convert.ToString(value); break;
					case "NickName" : _NickName = Convert.ToString(value); break;
					case "Birthday" : _Birthday = Convert.ToString(value); break;
					case "QQ" : _QQ = Convert.ToString(value); break;
					case "MSN" : _MSN = Convert.ToString(value); break;
					case "Tel" : _Tel = Convert.ToString(value); break;
					case "Mobile" : _Mobile = Convert.ToString(value); break;
					case "Address" : _Address = Convert.ToString(value); break;
					case "ZipCode" : _ZipCode = Convert.ToString(value); break;
					case "BackupNo" : _BackupNo = Convert.ToString(value); break;
					case "BackupOperator" : _BackupOperator = Convert.ToString(value); break;
					case "BackupTime" : _BackupTime = Convert.ToDateTime(value); break;
					case "BackupMemo" : _BackupMemo = Convert.ToString(value); break;
					default: base[name] = value; break;
				}
			}
		}
		#endregion

		#region 字段名
		/// <summary>
		/// 取得成员个人信息字段名的快捷方式
		/// </summary>
		public class _
		{
			///<summary>
			/// 编号
			///</summary>
			public const String ID = "ID";

			///<summary>
			/// 用户名称
			///</summary>
			public const String UserName = "UserName";

			///<summary>
			/// 昵称
			///</summary>
			public const String NickName = "NickName";

			///<summary>
			/// 生日
			///</summary>
			public const String Birthday = "Birthday";

			///<summary>
			/// 
			///</summary>
			public const String QQ = "QQ";

			///<summary>
			/// 
			///</summary>
			public const String MSN = "MSN";

			///<summary>
			/// 电话
			///</summary>
			public const String Tel = "Tel";

			///<summary>
			/// 手机
			///</summary>
			public const String Mobile = "Mobile";

			///<summary>
			/// 地址
			///</summary>
			public const String Address = "Address";

			///<summary>
			/// 邮政编码
			///</summary>
			public const String ZipCode = "ZipCode";

			///<summary>
			/// 备份编号
			///</summary>
			public const String BackupNo = "BackupNo";

			///<summary>
			/// 备份操作者
			///</summary>
			public const String BackupOperator = "BackupOperator";

			///<summary>
			/// 备份时间
			///</summary>
			public const String BackupTime = "BackupTime";

			///<summary>
			/// 备份注释
			///</summary>
			public const String BackupMemo = "BackupMemo";
		}
		#endregion
	}
}